<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option" />
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import { travelStrategyTypeApi } from '@/feature/streetView/infra/api/travelStrategyTypeApi'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: travelStrategyTypeApi,
        showSelection: false,
        dialogWidth: '800px',
        columns: [
          {
            label: '街道名称',
            required: true,
            prop: 'title',
            searchable: true
          },
          {
            label: '封面',
            required: true,
            prop: 'cover',
            type: ColumnType.IMAGE,
            span: 24
          },
          {
            label: '街道主题',
            required: true,
            prop: 'subject',
            width: 'auto',
            searchable: true,
            span: 24
          },
          {
            label: '排序号',
            required: true,
            prop: 'sortNum',
            span: 24
          },
          {
            label: '创建时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtCreate'
          },
          {
            label: '修改时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtModified'
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

